package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.constant.AutoFillConstant;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishMapper {


    @AutoFill(OperationType.INSERT)

    void insert(Dish dish);

    List<DishVO> getPage(SetmealPageQueryDTO dto);


    Dish selectById(Long id);

    void deleteDishBatch(List<Long> ids);

    DishVO getConcreateDish(Long id);
    @AutoFill(OperationType.UPDATE)
    void update(Dish dish);
    @AutoFill(OperationType.UPDATE)
    void updateDishStatus(Dish dish);

    List<Dish> getDishByCategoryId(Long categoryId);
}
